package com.example.birdfriends.utils.result;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class Result {
    public Map<String, Object> resultMap(boolean success, String msg, Object obj){
        Map<String, Object> ans = new HashMap<>();
        ans.put("success", success);
        ans.put("message", msg);
        ans.put("object", obj);
        return ans;
    }
}
